package com.example.api.admin.controller;

import com.example.api.admin.logic.ITestLogis;
import com.example.common.core.annotation.NoLoginAuth;
import com.example.common.core.result.Result;
import com.example.entity.api.admin.test.IndexVo;
import com.example.entity.api.admin.test.InfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
//@CrossOrigin
public class testController {

    @Autowired
    private ITestLogis testLogis;

    @GetMapping("/index")
    @NoLoginAuth
    public Result index(@RequestBody IndexVo indexVo){
        return Result.success();
    }

    @GetMapping("/info")
    @NoLoginAuth
    public Result info(@RequestBody InfoVo infoVo){
        return Result.success();
    }

}
